{# empty Twig template #}
{# empty Twig template #}
{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    <div class="row">
        <ul class="breadcrumb" style="margin-bottom: 5px;">
             <li>
                Vous êtes ici :  
            </li>
            <li>
                <a href="#">Gestion procédures</a>  
            </li>
             <li>
                <a href="#">Liste procédures</a>  
            </li>
            <li>
                <a href="#">Détail</a>  
            </li>
        </ul>
        <div class="col-lg-12">
            <h1>Détail</h1>
        </div>
    </div><!-- /.row -->

    {% block content %}

        <div class="row">
            <div class="col-lg-12">
                <h2>{{acProc.nomProcedure}}  </h2>
                <br>
                <h3>Responsable: {{acProc.user.prenomUser}} {{acProc.user.nomUser}}</h3>
                <br><br>
                <div class="panel-body">
                <h4>{{acProc.description}}</h4>
                </div>
                <br>
                <div class="col-lg-12">
                    {%for phase in list_phase %}
                        <div class="panel panel-info">
                            <div class="panel-heading">
                                <h3 class="panel-title">
                                    {{ phase.nomPhase }}
                                </h3>
                            </div>
                            <div class="panel-body">            
                                <div class="table-responsive">
                                    <table class="table table-bordered table-hover tablesorter">
                                        <thead>
                                            <tr>
                                                <th width="24%">N° opération <i class="fa fa-sort"></i></th>
                                                <th width="24%">Operation <i class="fa fa-sort"></i></th>
                                                <th width="20%">Description <i class="fa fa-sort"></i></th>
                                                <th width="20%">Temps (jours) <i class="fa fa-sort"></i></th>
                                                <th width="20%">Dépendance <i class="fa fa-sort"></i></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {% for operation in list_operation %}
                                                {% if operation.phase == phase %}
                                                <tr>
                                                    <td>{{operation.id}}</td>
                                                    <td>{{operation.nomOperation}}</td>
                                                    <td>{{operation.description}}</td>
                                                    <td>{{operation.delaiOperation}}</td>
                                                    <td>{{operation.dependanceOperation}}</td>
                                                </tr>
                                                {% endif %}
                                            {% endfor %}

                                        </tbody>

                                    </table>

                                </div>
                            </div>
                        </div>
                    {% endfor %}
                    <a class="btn btn-primary" type="button" href="{{ path('cnam_actiman_procedure_phase', {'idpro': acProc.id}) }}">Modifier la procédure</a>
                </div>
                </div>
                </div>

            {% endblock%}
        {% endblock%}